package com.icloud.article.boot.model;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

@Getter
@Setter
@TableName("article_browsed")
@ApiModel(value = "浏览记录对象", description = "浏览记录")
public class ArticleBrowsed {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("帖子id")
    @TableField("article_id")
    private Long articleId;

    @ApiModelProperty("浏览人id")
    @TableField("browser_id")
    private Long browserId;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;
}
